<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="API docs for the EMVoiceMessageBody class from the im_flutter_sdk library, for the Dart programming language.">
  <title>EMVoiceMessageBody class - im_flutter_sdk library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">

</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">im_flutter_sdk</a></li>
    <li><a href="im_flutter_sdk/im_flutter_sdk-library.html">im_flutter_sdk</a></li>
    <li class="self-crumb">EMVoiceMessageBody class</li>
  </ol>
  <div class="self-name">EMVoiceMessageBody</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <h5>im_flutter_sdk library</h5>
    <ol>
      <li class="section-title"><a href="im_flutter_sdk/im_flutter_sdk-library.html#classes">Classes</a></li>
      <li><a href="im_flutter_sdk/EMChatManager-class.html">EMChatManager</a></li>
      <li><a href="im_flutter_sdk/EMChatRoom-class.html">EMChatRoom</a></li>
      <li><a href="im_flutter_sdk/EMChatRoomEventListener-class.html">EMChatRoomEventListener</a></li>
      <li><a href="im_flutter_sdk/EMClient-class.html">EMClient</a></li>
      <li><a href="im_flutter_sdk/EMCmdMessageBody-class.html">EMCmdMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMConnectionListener-class.html">EMConnectionListener</a></li>
      <li><a href="im_flutter_sdk/EMContact-class.html">EMContact</a></li>
      <li><a href="im_flutter_sdk/EMContactEventListener-class.html">EMContactEventListener</a></li>
      <li><a href="im_flutter_sdk/EMContactManager-class.html">EMContactManager</a></li>
      <li><a href="im_flutter_sdk/EMConversation-class.html">EMConversation</a></li>
      <li><a href="im_flutter_sdk/EMDeviceInfo-class.html">EMDeviceInfo</a></li>
      <li><a href="im_flutter_sdk/EMFileMessageBody-class.html">EMFileMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMGroup-class.html">EMGroup</a></li>
      <li><a href="im_flutter_sdk/EMGroupChangeListener-class.html">EMGroupChangeListener</a></li>
      <li><a href="im_flutter_sdk/EMGroupInfo-class.html">EMGroupInfo</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager-class.html">EMGroupManager</a></li>
      <li><a href="im_flutter_sdk/EMGroupOptions-class.html">EMGroupOptions</a></li>
      <li><a href="im_flutter_sdk/EMImageMessageBody-class.html">EMImageMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMLocationMessageBody-class.html">EMLocationMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMMessage-class.html">EMMessage</a></li>
      <li><a href="im_flutter_sdk/EMMessageListener-class.html">EMMessageListener</a></li>
      <li><a href="im_flutter_sdk/EMMucSharedFile-class.html">EMMucSharedFile</a></li>
      <li><a href="im_flutter_sdk/EMNormalFileMessageBody-class.html">EMNormalFileMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMOptions-class.html">EMOptions</a></li>
      <li><a href="im_flutter_sdk/EMTextMessageBody-class.html">EMTextMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMVideoMessageBody-class.html">EMVideoMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMVoiceMessageBody-class.html">EMVoiceMessageBody</a></li>
    
    
    
    
    
      <li class="section-title"><a href="im_flutter_sdk/im_flutter_sdk-library.html#enums">Enums</a></li>
      <li><a href="im_flutter_sdk/EMChatRoomPermissionType-class.html">EMChatRoomPermissionType</a></li>
      <li><a href="im_flutter_sdk/EMGroupPermissionType-class.html">EMGroupPermissionType</a></li>
      <li><a href="im_flutter_sdk/EMGroupStyle-class.html">EMGroupStyle</a></li>
      <li><a href="im_flutter_sdk/EMMessageType-class.html">EMMessageType</a></li>
    
    
    </ol>
  </div>

  <div class="col-xs-12 col-sm-9 col-md-8 main-content">
      <h1>EMVoiceMessageBody class </h1>

    
    <section>
      <dl class="dl-horizontal">
        <dt>Inheritance</dt>
        <dd><ul class="gt-separated dark clazz-relationships">
          <li>Object</li>
          <li><a href="im_flutter_sdk/EMFileMessageBody-class.html">EMFileMessageBody</a></li>
          <li>EMVoiceMessageBody</li>
        </ul></dd>




      </dl>
    </section>

    <section class="summary offset-anchor" id="constructors">
      <h2>Constructors</h2>

      <dl class="constructor-summary-list">
        <dt id="EMVoiceMessageBody" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMVoiceMessageBody/EMVoiceMessageBody.html">EMVoiceMessageBody</a></span><span class="signature">(<span class="parameter" id="-param-voiceFile"><span class="type-annotation">File</span> <span class="parameter-name">voiceFile</span>, </span> <span class="parameter" id="-param-duration"><span class="type-annotation">int</span> <span class="parameter-name">duration</span></span>)</span>
        </dt>
        <dd>
          创建方法，<code>voiceFile</code>: 要发送的音频文件; <code>duration</code>: 文件时长
        </dd>
        <dt id="EMVoiceMessageBody.of" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMVoiceMessageBody/EMVoiceMessageBody.of.html">EMVoiceMessageBody.of</a></span><span class="signature">(<span class="parameter" id="of-param-body"><span class="type-annotation"><a href="im_flutter_sdk/EMVoiceMessageBody-class.html">EMVoiceMessageBody</a></span> <span class="parameter-name">body</span></span>)</span>
        </dt>
        <dd>
          
        </dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-properties">
      <h2>Properties</h2>

      <dl class="properties">
        <dt id="length" class="property">
          <span class="name"><a href="im_flutter_sdk/EMVoiceMessageBody/length.html">length</a></span>
          <span class="signature">&#8594; Future<span class="signature">&lt;<wbr><span class="type-parameter">int</span>&gt;</span></span> 
        </dt>
        <dd>
          文件时长
          <div class="features">read-only</div>
</dd>
        <dt id="displayName" class="property inherited">
          <span class="name"><a href="im_flutter_sdk/EMFileMessageBody/displayName.html">displayName</a></span>
          <span class="signature">&#8596; String</span> 
        </dt>
        <dd class="inherited">
          文件名称
          <div class="features">read / write, inherited</div>
</dd>
        <dt id="downloadStatus" class="property inherited">
          <span class="name"><a href="im_flutter_sdk/EMFileMessageBody/downloadStatus.html">downloadStatus</a></span>
          <span class="signature">&#8596; EMDownloadStatus</span> 
        </dt>
        <dd class="inherited">
          文件下载状态
          <div class="features">read / write, inherited</div>
</dd>
        <dt id="fileName" class="property inherited">
          <span class="name"><a href="im_flutter_sdk/EMFileMessageBody/fileName.html">fileName</a></span>
          <span class="signature">&#8596; String</span> 
        </dt>
        <dd class="inherited">
          文件名称
          <div class="features">read / write, inherited</div>
</dd>
        <dt id="hashCode" class="property inherited">
          <span class="name"><a href="im_flutter_sdk/EMFileMessageBody/hashCode.html">hashCode</a></span>
          <span class="signature">&#8594; int</span> 
        </dt>
        <dd class="inherited">
          The hash code for this object. <a href="im_flutter_sdk/EMFileMessageBody/hashCode.html">[...]</a>
          <div class="features">read-only, inherited</div>
</dd>
        <dt id="localUrl" class="property inherited">
          <span class="name"><a href="im_flutter_sdk/EMFileMessageBody/localUrl.html">localUrl</a></span>
          <span class="signature">&#8596; String</span> 
        </dt>
        <dd class="inherited">
          文件本地路径
          <div class="features">read / write, inherited</div>
</dd>
        <dt id="remoteUrl" class="property inherited">
          <span class="name"><a href="im_flutter_sdk/EMFileMessageBody/remoteUrl.html">remoteUrl</a></span>
          <span class="signature">&#8596; String</span> 
        </dt>
        <dd class="inherited">
          文件服务器路径
          <div class="features">read / write, inherited</div>
</dd>
        <dt id="runtimeType" class="property inherited">
          <span class="name"><a href="im_flutter_sdk/EMFileMessageBody/runtimeType.html">runtimeType</a></span>
          <span class="signature">&#8594; Type</span> 
        </dt>
        <dd class="inherited">
          A representation of the runtime type of the object.
          <div class="features">read-only, inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-methods">
      <h2>Methods</h2>
      <dl class="callables">
        <dt id="noSuchMethod" class="callable inherited">
          <span class="name"><a href="im_flutter_sdk/EMFileMessageBody/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation">Invocation</span> <span class="parameter-name">invocation</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
          </dt>
        <dd class="inherited">
          Invoked when a non-existent method or property is accessed. <a href="im_flutter_sdk/EMFileMessageBody/noSuchMethod.html">[...]</a>
          <div class="features">inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor inherited" id="operators">
      <h2>Operators</h2>
      <dl class="callables">
        <dt id="operator ==" class="callable inherited">
          <span class="name"><a href="im_flutter_sdk/EMFileMessageBody/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation">dynamic</span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; bool</span>
          </span>
          </dt>
        <dd class="inherited">
          The equality operator. <a href="im_flutter_sdk/EMFileMessageBody/operator_equals.html">[...]</a>
          <div class="features">inherited</div>
</dd>
      </dl>
    </section>




  </div> <!-- /.main-content -->

  <div class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
    <ol>
      <li class="section-title"><a href="im_flutter_sdk/EMVoiceMessageBody-class.html#constructors">Constructors</a></li>
      <li><a href="im_flutter_sdk/EMVoiceMessageBody/EMVoiceMessageBody.html">EMVoiceMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMVoiceMessageBody/EMVoiceMessageBody.of.html">of</a></li>
    
      <li class="section-title">
        <a href="im_flutter_sdk/EMVoiceMessageBody-class.html#instance-properties">Properties</a>
      </li>
      <li><a href="im_flutter_sdk/EMVoiceMessageBody/length.html">length</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMFileMessageBody/displayName.html">displayName</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMFileMessageBody/downloadStatus.html">downloadStatus</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMFileMessageBody/fileName.html">fileName</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMFileMessageBody/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMFileMessageBody/localUrl.html">localUrl</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMFileMessageBody/remoteUrl.html">remoteUrl</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMFileMessageBody/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title"><a href="im_flutter_sdk/EMVoiceMessageBody-class.html#instance-methods">Methods</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMFileMessageBody/noSuchMethod.html">noSuchMethod</a></li>
    
      <li class="section-title inherited"><a href="im_flutter_sdk/EMVoiceMessageBody-class.html#operators">Operators</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMFileMessageBody/operator_equals.html">operator ==</a></li>
    
    
    
    </ol>
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    im_flutter_sdk 1.0.0
  </span>

</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>


</body>

</html>
